<?php
$ADMUM = new Admin_Model_AdminUsers();
$adm_users = $ADMUM->getUsers(array('order_field' => 'login', 'order_dir' => 'ASC'));
if (is_array($adm_users) && count($adm_users)) {
    ?>
<span id="title-info-bar" onclick="$(this).next().toggle('slow');">Admin users online:</span>
    <div>
        <table>
            <?php
            foreach ($adm_users as $user) {
                if ($this->cache->getValue("adminuser_" . $user['id'])) {
                    echo '<tr><td style="padding-right: 10px;"><span class="lime">' . $user['login'] . '</span></td><td> ip: ' . $this->cache->getValue("adminuser_" . $user['id']) . '</td></tr>';
                }
            }
            ?>
        </table>
<?php } ?>
</div>